//
//  ViewController.m
//  2015.11.2  w2
//
//  Created by blue on 15-11-2.
//  Copyright (c) 2015年 sxh. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    self.view.backgroundColor = [UIColor greenColor];
    
    UILabel *l = [[UILabel alloc] initWithFrame:CGRectMake(100, 200, 100, 44)];
    l.text = @"你好!世界！";
    l.textColor = [UIColor redColor];
    [self.view addSubview:l];
    
    
    for (int i=0; i<5; i++) {
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(15+i*50+i*10, 100, 50, 50)];
        view.backgroundColor = [UIColor redColor];
        
        view.layer.cornerRadius=50/2.0;
        view.clipsToBounds=YES;
        //vgchhdfgxshhxhshd
        
        [self.view addSubview:view];

    }
    
//    for (int i=0; i<3; i++) {
//        UIView *linel=[[UIView alloc] initWithFrame:CGRectMake(50+100*i, 250, 3, 200)];
//        UIView *linel2=[[UIView alloc] initWithFrame:CGRectMake(50, 100*i+250, 200, 3)];
//    
//    linel.backgroundColor=[UIColor whiteColor];
//    linel.clipsToBounds=YES;
//    [self.view addSubview:linel];
//        
//    linel2.backgroundColor=[UIColor whiteColor];
//    linel2.clipsToBounds=YES;
//    [self.view addSubview:linel2];
//    
//    }
    
    UIView *view=[[UIView alloc] initWithFrame:CGRectMake(20, 200, 200, 200)];
    view.layer.borderWidth=2;
    view.clipsToBounds=YES;
    [self.view addSubview:view];
    
    
    UIView *yuan=[[UIView alloc] initWithFrame:CGRectMake(100, 0, 200, 200)];
    yuan.layer.cornerRadius=100;
    yuan.layer.borderWidth=2;
    [view addSubview:yuan];
    
    
    UIView * line1=[[UIView alloc] initWithFrame:CGRectMake(0, 99, 200, 2)];
    line1.backgroundColor=[UIColor blackColor];
    line1.clipsToBounds=YES;
    [view addSubview:line1];
    
    
    UIView * line3=[[UIView alloc] initWithFrame:CGRectMake(99, 0, 2, 200)];
    line3.backgroundColor=[UIColor blackColor];
    line3.clipsToBounds=YES;
    [view addSubview:line3];

    
    
    
    
    
    
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
